package com.lcf.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lcf.system.entity.UserOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单(UserOrder)表数据库访问层
 *
 * @author lcf
 * @since 2025-04-24 21:14:33
 */
public interface UserOrderDao extends BaseMapper<UserOrder> {
    /**
     * 商品是否已购买
     */
    List<Long> isBuy(@Param("goodsIds") List<Long> goodsIds,
                     @Param("openId") String openId);
}

